package com.wdl.modules.myhouse.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wdl.modules.myhouse.common.MyPage;
import com.wdl.modules.myhouse.dao.SysRoleDao;

import com.wdl.modules.myhouse.entity.sys.SysRoleEntity;

import com.wdl.modules.myhouse.service.SysRoleService;

import com.wdl.modules.myhouse.utils.util.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 昏昏的君
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleDao, SysRoleEntity> implements SysRoleService {

    @Autowired
    private SysRoleDao roleDao;

    @Override
    public IPage<SysRoleEntity> getRoleByPage(MyPage page1) {
        return this.baseMapper.selectPage(PageUtil.getIPage(page1, new SysRoleEntity()), new QueryWrapper<SysRoleEntity>());
    }
}
